package com.hanson.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hanson.entity.GroupGoodsBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GroupGoodsBeanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(GroupGoodsBean record);

    GroupGoodsBean selectByPrimaryKey(Integer id);

    List<GroupGoodsBean> selectAll();

    List<GroupGoodsBean> selectByGoodsId(@Param("goodsId") Integer goodsId);

    int updateByPrimaryKey(GroupGoodsBean record);

    List<GroupGoodsBean> listGroupGoods(Page<GroupGoodsBean> page, @Param("groupGoodsBean") GroupGoodsBean groupGoodsBean);

    void updateIsShow(@Param("isShow") int isShow, @Param("id") int id);

    List<GroupGoodsBean> selectCurrentTimeData();
}